package com.zoro.barn.commons.mongodb.dao;

import java.util.Map;

/**
 * @author zhaoxingwu
 */
public class GridFileInfo {

    private String id;
    private Map<String, Object> metadata;
    private String fileName;
    /**
     * 文件 sha 字符串
     */
    private String sha;

    public String getSha() {
        return sha;
    }

    public void setSha(String sha) {
        this.sha = sha;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Map<String, Object> getMetadata() {
        return metadata;
    }

    public void setMetadata(Map<String, Object> metadata) {
        this.metadata = metadata;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return "GridFileInfo{" +
                "id='" + id + '\'' +
                ", metadata=" + metadata +
                ", fileName='" + fileName + '\'' +
                '}';
    }
}
